#include "StdAfx.h"
#include "DD_HubAnaly.h"


#include "xhHubAnaly.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

DD_HubAnaly::DD_HubAnaly()
{
	m_pxhHubAnaly = NULL;
}

DD_HubAnaly::~DD_HubAnaly()
{
	MySafeDelete(m_pxhHubAnaly);
}


int DD_HubAnaly::Initialize()
{
	MySafeDelete(m_pxhHubAnaly);
	m_pxhHubAnaly = new xhHubAnaly;
	return m_pxhHubAnaly->Initialize();
}

int DD_HubAnaly::SetHwnd(HWND hWnd)
{
	return m_pxhHubAnaly->SetHwnd(hWnd);
}

int DD_HubAnaly::LoadFile(char *pFileName)
{
	return m_pxhHubAnaly->LoadFile(pFileName);
}

int DD_HubAnaly::SetImgBuffer(zkImgBitInfo *pImgInfo,BOOL bView)
{
	return m_pxhHubAnaly->SetImgBuffer(pImgInfo,bView);
}

int DD_HubAnaly::Operate(DWORD dwProMode,void *pVoid)
{
	return m_pxhHubAnaly->Operate(dwProMode,pVoid);
}

int DD_HubAnaly::GetImgBuffer(zkImgBitInfo **ppImgInfo)
{
	return m_pxhHubAnaly->GetImgBuffer(ppImgInfo);
}

int DD_HubAnaly::GetImageSize(int &nWidth,int &nHeight)
{
	return m_pxhHubAnaly->GetImageSize(nWidth,nHeight);
}

int DD_HubAnaly::Undo(int nStep)
{
	return m_pxhHubAnaly->Undo(nStep);
}

int DD_HubAnaly::Redo()
{
	return m_pxhHubAnaly->Redo();
}

int	DD_HubAnaly::Draw(void *pVoid)
{
	return m_pxhHubAnaly->Draw(pVoid);
}

int DD_HubAnaly::ImageCtrl(DWORD dwType,void *pVoid)
{
	return m_pxhHubAnaly->ImageCtrl(dwType,pVoid);
}

int DD_HubAnaly::SaveDispToFile(char *pFileName,void *pVoid)
{
    return m_pxhHubAnaly->SaveDispToFile(pFileName,pVoid);
}

int DD_HubAnaly::GetGrayValue(int x,int y,DWORD &dwGray)
{
	return m_pxhHubAnaly->GetGrayValue(x,y,dwGray);
}

int DD_HubAnaly::GetLineGray(POINT tStart,POINT tEnd,zkImgLineGray **ppLineGray)
{
	return m_pxhHubAnaly->GetLineGray(tStart,tEnd,ppLineGray);
}

int DD_HubAnaly::GetHistogramInfo(zkImgHistogram **ppHistogram)
{
	return m_pxhHubAnaly->GetHistogramInfo(ppHistogram);
}

int DD_HubAnaly::SaveFile(char *pFileName,void *pVoid)
{
	return m_pxhHubAnaly->SaveFile(pFileName,pVoid);
}

int DD_HubAnaly::RegOnDrawCallBack(OnDrawCallBackFun funCallBack,void *pContext)
{
	return m_pxhHubAnaly->RegOnDrawCallBack(funCallBack,pContext);
}

int DD_HubAnaly::DrawMark(void *pVoid)
{
	return m_pxhHubAnaly->DrawMark(pVoid);
}

int DD_HubAnaly::GetImageAreaPoint(RECT *pAreaRect,zkImgAreaPoint *pImgArea)
{
	return m_pxhHubAnaly->GetImageAreaPoint(pAreaRect,pImgArea);
}

int DD_HubAnaly::SetAreaPoint(void *pVoid)
{
	return m_pxhHubAnaly->SetAreaPoint(pVoid);
}

int DD_HubAnaly::GetRetInfo(void **ppVoid)
{
	return m_pxhHubAnaly->GetRetInfo(ppVoid);
}

int DD_HubAnaly::ConpositeImageTo(void *pImage,RECT *pRect)
{
	return m_pxhHubAnaly->ConpositeImageTo(pImage,pRect);
}